package com.finalterm.order.feign;

import com.finalterm.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户服务Feign客户端
 */
@FeignClient(name = "user-service")
public interface UserServiceClient {
    
    /**
     * 验证用户是否有效
     */
    @GetMapping("/api/user/validate/{userId}")
    Result<Boolean> validateUser(@PathVariable("userId") Long userId);
}
